home *** CD-ROM | disk | FTP | other *** search
/ Workbench Designer 2 / Workbench Designer 2.iso / workbench-tools / finalexecute / installation-script < prev   
Encoding:
Text File  |  1997-07-06  |  7.6 KB  |  207 lines

  1. ; Initialize some very important variables
  2.  
  3. (set progdir "SYS:WBStartup")
  4. (set vernum (getversion "exec.library" (resident)))
  5. (set ver (/ vernum 65536))
  6. (set installerversion @installer-version)
  7. (set installerver (/ installerversion 65536))
  8. (set installerrev (- installerversion (* installerversion 65536)))
  9.  
  10. (if (= @language "deutsch")
  11.     (if (>= ver 39)
  12.        (
  13.         (set progdir
  14.             (askdir
  15.                 (prompt "Bitte wähle das Verzeichnis aus in dem das Programm liegen soll:")
  16.                 (help "Am besten wäre die WBStartup-Schublade")
  17.                 (default "SYS:WBStartup")
  18.             )
  19.         )
  20.         (set @default-dest progdir)
  21.         (set maxlastinputs
  22.             (asknumber
  23.                 (prompt "Was soll die Maximal-Anzahl der Einträge im Befehlscache sein ?")
  24.                 (help "Im Befehlscache werden Einträge zwischengespeichert.Jeder Eintrag belegt z.Z. maximal 1 KByte, je nach Länge des Eintrags.")
  25.                 (default 32)
  26.             )
  27.         )
  28.         (set docdir
  29.             (askdir
  30.                 (prompt "Wohin soll die Anleitung hineinkopiert werden ?")
  31.                 (help "Normalerweise gibt es ein Verzeichnis HELP: unter OS3.x dafür, aber die Anleitung kann auch woanders liegen.")
  32.                 (default "HELP:")
  33.             )
  34.         )
  35.         (copyfiles
  36.             (prompt
  37.                 (cat "Kopiere die Datei \\"FinalExecute\\" nach "
  38.                      progdir
  39.                      "..."
  40.                 )
  41.             )
  42.             (help @copyfiles-help)
  43.             (source "FinalExecute")
  44.             (infos)
  45.             (dest progdir)
  46.         )
  47.         (copyfiles
  48.             (prompt
  49.                 (cat "Kopiere die Datei \\"FinalExecute.guide\\" nach "
  50.                      docdir
  51.                      "..."
  52.                 )
  53.             )
  54.             (help @copyfiles-help)
  55.             (source "Docs/FinalExecuteD.guide")
  56.             (newname "FinalExecute.guide")
  57.             (dest docdir)
  58.             (infos)
  59.             (noposition)
  60.         )
  61.         (copylib
  62.             (prompt "Kopiere die \"datatypes.library\" V45++ nach LIBS:...")
  63.             (help @copylib-help)
  64.             (confirm)
  65.             (source "Libs/datatypes.library")
  66.             (dest "LIBS:")
  67.         )
  68.         (copyfiles
  69.             (prompt "Kopiere die Datei \\"finalexecute.catalog\\" nach LOCALE:Catalogs...")
  70.             (help @copyfiles-help)
  71.             (source "Catalogs/deutsch/finalexecute.catalog")
  72.             (dest "LOCALE:Catalogs/deutsch/")
  73.         )
  74.         (copyfiles
  75.             (prompt "Kopiere die Datei \\"lamp.mcc\\" nach MUI:Libs/MUI...")
  76.             (help @copyfiles-help)
  77.             (source "MUI/Libs/MUI/lamp.mcc")
  78.             (dest "MUI:Libs/MUI")
  79.         )
  80.         (copyfiles
  81.             (prompt "Kopiere die Datei \\"lamp.mcp\\" nach MUI:Libs/MUI...")
  82.             (help @copyfiles-help)
  83.             (source "MUI/Libs/MUI/lamp.mcp")
  84.             (dest "MUI:Libs/MUI")
  85.         )
  86.         (working "Ändere nun die Tooltypes...")
  87.         (set fulldir (tackon progdir "FinalExecute"))
  88.         (tooltype
  89.             (dest fulldir)
  90.             (settooltype "MAXLASTINPUTS")
  91.         )
  92.         (tooltype
  93.             (dest fulldir)
  94.             (settooltype "MAXLASTINPUTS" ("%ld" maxlastinputs))
  95.         )
  96.         (message "Die Installation ist nun beendet !\n"
  97.                  "Für wichtige Fragen lesen Sie bitte die Anleitung.\n"
  98.                  "Die Voreinstellungen für Aufruf-Tasten, AppIcon usw. nehmen Sie bitte\n"
  99.                  "mit den MUI-Prefs des Programms vor.\n"
  100.                  "Benutzen Sie im Notfall das Programm `Exchange`\n"
  101.                  "aus Ihrer Commodities-Schublade im Tools-Verzeichnis zum Aufruf !\n\n"
  102.                  "Lamp.mcc/Lamp.mcp and all according files are Copyright © 1997 by Maik Schreiber/IQ Computing.\n"
  103.                  "Updates are always available at http://home.pages.de/~bZ/projekte/mcc_lamp/\n\n"
  104.                  "Datatypes.library V45 ©1996,1997 by Roland Mainz, dieses Paket beinhaltet nur die Library !\n"
  105.                  "Das vollständige und neueste Paket erhalten Sie im Aminet-Archiv !\n"
  106.         )
  107.        )
  108.        (
  109.         (abort "Du benötigst mindestens OS3.0 oder höher !")
  110.        )
  111.     )
  112.     (if (>= ver 39)
  113.        (
  114.         (set progdir
  115.             (askdir
  116.                 (prompt "Please choose the directory where the program should be placed:")
  117.                 (help "The best directory may be the SYS:WBStartup directory.")
  118.                 (default "SYS:WBStartup")
  119.             )
  120.         )
  121.         (set maxlastinputs
  122.             (asknumber
  123.                 (prompt "What should be the maximal number of entries in the command cache ?")
  124.                 (help "To the command cache all new entries will be stored for a while every entry needs currently max. 1 KByte of memory, depending on its length.")
  125.                 (default 32)
  126.             )
  127.         )
  128.         (set docdir
  129.             (askdir
  130.                 (prompt "Where should I copy the guide file ?")
  131.                 (help "Normally under OS3.x there is an assign HELP: for documentation files. But the document file can be placed where ever you want to place it.")
  132.                 (default "HELP:")
  133.             )
  134.         )
  135.         (copyfiles
  136.             (prompt
  137.                 (cat "Copying the file \\"FinalExecute\\" to "
  138.                      progdir
  139.                      "..."
  140.                 )
  141.             )
  142.             (help @copyfiles-help)
  143.             (source "FinalExecute")
  144.             (infos)
  145.             (dest progdir)
  146.         )
  147.         (copyfiles
  148.             (prompt
  149.                 (cat "Copying the file \\"FinalExecute.guide\\" to "
  150.                      docdir
  151.                      "..."
  152.                 )
  153.             )
  154.             (help @copyfiles-help)
  155.             (source "Docs/FinalExecute.guide")
  156.             (dest docdir)
  157.             (infos)
  158.             (noposition)
  159.         )
  160.         (copylib
  161.             (prompt "Copying \"datatypes.library\" V45++ to LIBS:...")
  162.             (help @copylib-help)
  163.             (confirm)
  164.             (source "Libs/datatypes.library")
  165.             (dest "LIBS:")
  166.         )
  167.         (copyfiles
  168.             (prompt "Copying the file \\"lamp.mcc\\" to MUI:Libs/MUI...")
  169.             (help @copyfiles-help)
  170.             (source "MUI/Libs/MUI/lamp.mcc")
  171.             (dest "MUI:Libs/MUI")
  172.         )
  173.         (copyfiles
  174.             (prompt "Copying the file \\"lamp.mcp\\" to MUI:Libs/MUI...")
  175.             (help @copyfiles-help)
  176.             (source "MUI/Libs/MUI/lamp.mcp")
  177.             (dest "MUI:Libs/MUI")
  178.         )
  179.         (set fulldir (tackon progdir "FinalExecute"))
  180.         (working "Changing tooltypes now...")
  181.         (tooltype
  182.             (dest fulldir)
  183.             (settooltype "MAXLASTINPUTS")
  184.         )
  185.         (tooltype
  186.             (dest fulldir)
  187.             (settooltype "MAXLASTINPUTS" ("%ld" maxlastinputs))
  188.         )
  189.         (message "The installation is now completed !\n"
  190.                  "For important questions read the documentation, please.\n"
  191.                  "The preferences for popkeys, appicon etc. can be set\n"
  192.                  "by using the MUI prefs of the program.\n"
  193.                  "In emergency cases use the program `Exchange`\n"
  194.                  "at your Commodities drawer in Tools for call !\n"
  195.                  "Lamp.mcc/Lamp.mcp and all according files are Copyright © 1997 by Maik Schreiber/IQ Computing.\n"
  196.                  "Updates are always available at http://home.pages.de/~bZ/projekte/mcc_lamp/\n"
  197.                  "Datatypes.library V45 ©1996,1997 by Roland Mainz, this package includes only the library !\n"
  198.                  "The full and newest version is available at Aminet !"
  199.         )
  200.  
  201.        )
  202.        (
  203.         (abort "You need at least OS3.0 or higher !")
  204.        )
  205.     )
  206. )
  207.